package demo;

import java.util.ArrayList;
import java.util.List;

public class Main {
    //用来测试
    public static void main(String[] args) {
        PlayCard game = new PlayCard();

        System.out.println("设置牌：");
        List<Card> cards = game.setCard();
        System.out.println(cards);

        System.out.println("洗牌后：");
        game.shuffle(cards);
        System.out.println(cards);

        System.out.println("发牌：");
        List<List<Card>> hand = game.getCard(cards);
        for (int i = 0; i < 3 ; i++) {
            System.out.println("第"+(i+1)+"个人的牌为："+hand.get(i));
        }

        System.out.println("剩余的牌为：");
        System.out.println(cards);
    }
}
